/**
* MagicServiceConfig.java 2020/5/8 8:12 下午
* Copyright ©2020 www.bmsoft.com.cn All rights reserved.
* PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package config;

import java.util.concurrent.ExecutorService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import remoting.Server;
import remoting.netty4.server.NettyServer;
import threadpools.ThreadPool;
import threadpools.fixed.FixedThreadPool;

/**
 * File：MagicServiceConfig.java<br>
 * Title: <br>
 * Description: <br>
 * Company: www.treefinance.com.cn <br>
 * @author heyouchi
 * Date: 2020/5/8
 */
public class MagicServiceConfig<T> extends AbstractMethodConfig {

  private static final Logger logger = LoggerFactory.getLogger(MagicServiceConfig.class);

  private Class<? extends Server> server = NettyServer.class;

  private int corePoolSize = 60;

  private int maxPoolSize = 300;

  private ThreadPool threadPool = new FixedThreadPool();

  private String pool;

  public Class<? extends Server> getServer() {
    return server;
  }

  public void setServer(Class<? extends Server> server) {
    this.server = server;
  }

  public int getCorePoolSize() {
    return corePoolSize;
  }

  public void setCorePoolSize(int corePoolSize) {
    this.corePoolSize = corePoolSize;
  }

  public int getMaxPoolSize() {
    return maxPoolSize;
  }

  public void setMaxPoolSize(int maxPoolSize) {
    this.maxPoolSize = maxPoolSize;
  }

  public String getPool() {
    return pool;
  }

  public void setPool(String pool) {
    this.pool = pool;
  }

  public ThreadPool getThreadPool() {
    return threadPool;
  }

  public void setThreadPool(ThreadPool threadPool) {
    this.threadPool = threadPool;
  }
}
